package com.imau.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.imau.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {



    //维护中间表的Mapper

    @Select("select  * from t_user where mobile = #{mobile}")
    User selectByMobileUser(@Param("mobile") String mobile);


    /**按照主键查询*/

    User selectById(String id);

    /**查询列表分页*/
    List<User> selectList(IPage<User> page, @Param("ew") Wrapper<User> queryWrapper);
}
